//
//  WLGP_AgreementWebViewViewController.m
//  IpPrivacy
//
//  Created by 录音转文字助手 on 2020/8/20.
//  Copyright © 2020 录音转文字助手. All rights reserved.
//

#import "WLGP_AgreementWebViewViewController.h"
#import <WebKit/WebKit.h>
#import "WLAppleStore.h"
@interface WLGP_AgreementWebViewViewController ()
@property (nonatomic,strong) WKWebView *webView;
@end

@implementation WLGP_AgreementWebViewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:self.webView];
    [self.webView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.mas_equalTo(self.view);
        make.top.mas_equalTo(self.nav_background_line_view.mas_bottom);
    }];

    NSString *path = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%@.html",self.htmlName] ofType:nil];
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:path]]];
}
#pragma mark - WLLBaseViewControllerDataSource
-(NSString *)setTitleBlack{
    return self.title;
}
//-(UIImage *)set_leftBarButtonItemWithImage{
//    return [UIImage imageNamed:@"ico_close"];
//}
//-(void)left_button_event:(UIButton *)sender{
//    [self dismissViewControllerAnimated:YES completion:nil];
//}
#pragma mark - 懒加载
-(WKWebView *)webView{
    if(!_webView){
        _webView = [[WKWebView alloc]init];
        _webView.opaque = false;
        _webView.backgroundColor = [UIColor whiteColor];
    }
    return _webView;;
}

@end
